<?php
class MidAutumnOrdersVo extends SzAbstractMySqlVo
{

    private $userId;
    private $order;
    private $quality;
    private $type;
    private $cdTime;
    private $createTime;
    private $updateTime;

    /**
     * Initialize MidAutumnOrdersVo.
     *
     * @param $userId
     * @param $order
     * @param $quality
     * @param $type
     * @param $cdTime
     * @param $createTime
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return MidAutumnOrdersVo
     */
    public function __construct($userId, $order, $quality, $type, $cdTime, $createTime, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->order = $order;
        $this->quality = $quality;
        $this->type = $type;
        $this->cdTime = $cdTime;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'MidAutumnOrdersVo';
        $this->ormName = 'MidAutumnOrders';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'order' => $this->getOrder(),
            'quality' => $this->getQuality(),
            'type' => $this->getType(),
            'cdTime' => $this->getCdTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'order' => $this->getOrder(),
            'quality' => $this->getQuality(),
            'type' => $this->getType(),
            'cdTime' => $this->getCdTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getOrder(),
            $this->getQuality(),
            $this->getType(),
            $this->getCdTime(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getOrder()
    {
        return $this->order;
    }

    public function setOrder($val)
    {
        $this->saveColumnStatus(1, $this->order);
        $this->order = $val;
    }

    public function getQuality()
    {
        return $this->quality;
    }

    public function setQuality($val)
    {
        $this->saveColumnStatus(2, $this->quality);
        $this->quality = $val;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setType($val)
    {
        $this->saveColumnStatus(3, $this->type);
        $this->type = $val;
    }

    public function getCdTime()
    {
        return $this->cdTime;
    }

    public function setCdTime($val)
    {
        $this->saveColumnStatus(4, $this->cdTime);
        $this->cdTime = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(5, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(6, $this->updateTime);
        $this->updateTime = $val;
    }

}